import { createRouter, createWebHistory } from 'vue-router'
const routes = [
    {
        path: '/',
        redirect: '/login'
    },
    {
        path: '/home',
        component: () => import('@/view/home.vue'),
        name: 'home'
    }, {
        path: '/login',
        name: 'login',
        component: () => import('@/view/login.vue')
    }
]
const router = createRouter({
    history: createWebHistory(),
    routes
})
export default router